package com.tiankong.product.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import net.youdi.common.em.SuperEnum;

/**
 * @author: scl
 * @date: 2021-06-24 14:34
 * @description
 */
public interface Type {

    /**
     * 属性类型[0-销售属性，1-基本属性，2-既是销售属性又是基本属性]
     */
    @Getter
    @AllArgsConstructor
    @JsonFormat(shape = JsonFormat.Shape.OBJECT)
    enum Attr implements SuperEnum {
        SALE("0","销售属性"),BASE("1","基本属性"),SALE_BASE("2","既是销售属性又是基本属性"),;
        @EnumValue
        @JsonValue
        private String code;
        private String name;
    }
}
